import Vue from 'vue'
import Router from 'vue-router'
import accountDetail from '../view/account_detail.vue'
import nav1List from '../view/nav_1_list.vue'
import home from '../view/home.vue'
import login from '../view/login'
import collectList from '../view/collect_list.vue'
import msgDetail from '../view/msg_detail.vue'
import service from '@/view/service/index'
import my from '@/view/my/index.vue'
import MyEquipment from '@/view/my/MyEquipment.vue'
import MyBusiness from '@/view/my/MyBusiness'
import myBusinessDetail from '@/view/my/myBusinessDetail'
import consultation from '@/view/hot/consultation'
import answers from '@/view/hot/answers'
import msg from '@/view/my/msg'
import imgDetail from '@/view/hot/imgDetail'
import picDetail from '@/view/hot/picDetail'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: home,
      meta: { notRequireAuth: true }
    },
    {
      path: '/login',
      name: 'login',
      component: login,
      meta: { notRequireAuth: true }
    },
    {
      path: '/home',
      name: 'home',
      component: home,
      meta: { notRequireAuth: true }
    },
    {
      path: '/account-detail',
      name: 'account-detail',
      component: accountDetail,
      meta: { notRequireAuth: true }
    },
    {
      path: '/nav-1-list',
      name: 'nav-1-list',
      component: nav1List,
      meta: { notRequireAuth: true }
    },
    {
      path: '/consultation',
      name: 'consultation',
      component: consultation,
      meta: { notRequireAuth: true }
    },
    {
      path: '/answers',
      name: 'answers',
      component: answers,
      meta: { notRequireAuth: true }
    },
    {
      path: '/imgDetail',
      name: 'imgDetail',
      component: imgDetail,
      meta: { notRequireAuth: true }
    },
    {
      path: '/picDetail',
      name: 'picDetail',
      component: picDetail,
      meta: { notRequireAuth: true }
    },
    {
      path: '/collect-list',
      name: 'collect-list',
      component: collectList,
      meta: { notRequireAuth: true }
    },
    {
      path: '/msg-detail',
      name: 'msgDetail',
      component: msgDetail,
      meta: { notRequireAuth: true }
    },
    {
      path: '/service',
      name: 'service',
      component: service,
      meta: { notRequireAuth: true }
    },
    {
      path: '/my',
      name: 'my',
      component: my,
      meta: { notRequireAuth: true }
    },
    {
      path: '/msg',
      name: 'msg',
      component: msg,
      meta: { notRequireAuth: true }
    },
    {
      path: '/MyEquipment',
      name: 'MyEquipment',
      component: MyEquipment,
      meta: { notRequireAuth: true }
    },
    {
      path: '/MyBusiness',
      name: 'MyBusiness',
      component: MyBusiness,
      meta: { notRequireAuth: true }
    },
    {
      path: '/myBusinessDetail',
      name: 'myBusinessDetail',
      component: myBusinessDetail,
      meta: { notRequireAuth: true }
    }
  ]
})
